package com.yidianyanglao.shop.bean;

/**
 * Created by Administrator on 2016/11/12.
 */
public class OrderProduct {

    private int id;
    private String name;    //商户名称
    private String code;    //商品编号
    private String type;    //型号/单位
    private int num;        //商品数量
    private String subtotal;        //小计
    private int orderId;            //关联订单外键

    public OrderProduct(){}

    public OrderProduct(String name,String code,String type,int num,String subtotal){

        this.name = name;
        this.code = code;
        this.type = type;
        this.num = num;
        this.subtotal = subtotal;

    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getSubtotal() {
        return subtotal;
    }

    public void setSubtotal(String subtotal) {
        this.subtotal = subtotal;
    }

    public int getOrderId() {
        return orderId;
    }

    public void setOrderId(int orderId) {
        this.orderId = orderId;
    }

    @Override
    public String toString() {
        return "OrderProduct{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", code='" + code + '\'' +
                ", type='" + type + '\'' +
                ", num=" + num +
                ", subtotal='" + subtotal + '\'' +
                ", orderId=" + orderId +
                '}';
    }
}
